{% extends 'base.html' %}

{% block title %}my information{% endblock %}

{% block content %}
<div class="row text-center vertical-middle-sm">
    <h1>编辑个人信息</h1>
    <div class="row">
        <div class="col-md-6">
            <form action="." class="form-horizontal" method="post">
                {% csrf_token %}
                <div class="row">
                    <div class="col-md-4 text-right"><span>用户名：</span></div>
                    <div class="col-md-8 text-left">{{ user.username }}</div>
                </div>
                <div class="row">
                    <div class="col-md-4 text-right"><span>邮箱：</span></div>
                    <div class="col-md-8 text-left">{{ user_form.email }}</div>
                </div>
                <div class="row">
                    <div class="col-md-4 text-right"><span>电话：</span></div>
                    <div class="col-md-8 text-left">{{ userprofile_form.phone }}</div>
                </div>
                <div class="row">
                    <div class="col-md-4 text-right"><span>公司：</span></div>
                    <div class="col-md-8 text-left">{{ userinfo_form.company }}</div>
                </div>
                 <div class="row">
                    <div class="col-md-4 text-right"><span>职业：</span></div>
                    <div class="col-md-8 text-left">{{ userinfo_form.profession }}</div>
                </div>
                 <div class="row">
                    <div class="col-md-4 text-right"><span>个人介绍：</span></div>
                    <div class="col-md-8 text-left">{{ userinfo_form.aboutme }}</div>
                </div>
                <div class="row">
                    <input type="submit" class="btn btn-primary btn-lg" value="Submit">
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}